<template>
    <div class="gotop"
        @click="goTop()"
    >
        <i class="iconfont">&#xe648;</i>
    </div>
</template>
<script>
    export default{
        props: [
            'goTop'
        ]
    }   
</script>
<style scoped>
    .gotop{
        position: fixed;
        bottom: 2.4rem;
        right: 0;
        z-index: 999;
        width: 0.74rem;
        height: 0.74rem;
        border-radius: 0.06rem 0 0 0.06rem;
        line-height: 0.74rem;
        text-align: center;
        background: rgba(0,0,0,0.7);
    }
    .iconfont{
        font-size: 0.44rem;
        color: #fff;
        font-weight: 0;
    }
</style>